package org.ala.shopping_test.user_center.repository.user.entity;

import java.io.Serializable;
import java.util.List;
import java.util.ArrayList;


/**
 *	EntityFields (user_buyer)
 *  品类表
 *
 *	@author 骆毅 (ala)
 *	@date 2025-03-24 15:03:46
 */
public class UserBuyerFields implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     *  买家id
     */
    public static String Id = "id";
    /**
     *  买家名称
     */
    public static String BuyerName = "buyer_name";
    /**
     *  买家评级
     */
    public static String BuyerLevel = "buyer_level";
    /**
     *  记录创建时间
     */
    public static String CreateTime = "create_time";
    /**
     *  记录最后修改时间
     */
    public static String ModifyTime = "modify_time";


    /**
     *  本次查询涉及的字段名
     */
    protected List<String> fields;
    public List<String> getFields() {
        return fields;
    }
    public void setFields(List<String> fields) {
        this.fields = fields;
    }
    /**
     *  全部字段
     */
    public static UserBuyerFields All() {
        UserBuyerFields f = new UserBuyerFields();
        List<String> fields = new ArrayList<>();
            fields.add(UserBuyerFields.Id);
            fields.add(UserBuyerFields.BuyerName);
            fields.add(UserBuyerFields.BuyerLevel);
            fields.add(UserBuyerFields.CreateTime);
            fields.add(UserBuyerFields.ModifyTime);
        f.fields = fields;
        return f;
    }
    /**
     *  追加 id
     */
    public static UserBuyerFields Id() {
        return new UserBuyerFields().id();
    }
    public UserBuyerFields id() {
        if (fields == null) {fields = new ArrayList<>();}
        fields.add(UserBuyerFields.Id);
        return this;
    }
    /**
     *  追加 buyer_name
     */
    public static UserBuyerFields BuyerName() {
        return new UserBuyerFields().buyerName();
    }
    public UserBuyerFields buyerName() {
        if (fields == null) {fields = new ArrayList<>();}
        fields.add(UserBuyerFields.BuyerName);
        return this;
    }
    /**
     *  追加 buyer_level
     */
    public static UserBuyerFields BuyerLevel() {
        return new UserBuyerFields().buyerLevel();
    }
    public UserBuyerFields buyerLevel() {
        if (fields == null) {fields = new ArrayList<>();}
        fields.add(UserBuyerFields.BuyerLevel);
        return this;
    }
    /**
     *  追加 create_time
     */
    public static UserBuyerFields CreateTime() {
        return new UserBuyerFields().createTime();
    }
    public UserBuyerFields createTime() {
        if (fields == null) {fields = new ArrayList<>();}
        fields.add(UserBuyerFields.CreateTime);
        return this;
    }
    /**
     *  追加 modify_time
     */
    public static UserBuyerFields ModifyTime() {
        return new UserBuyerFields().modifyTime();
    }
    public UserBuyerFields modifyTime() {
        if (fields == null) {fields = new ArrayList<>();}
        fields.add(UserBuyerFields.ModifyTime);
        return this;
    }
}